package com.ex.ui.questionpanel;

import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;

import com.ex.ui.infoframe.PersonInfoIFrame;

import javax.swing.JLabel;
@SuppressWarnings("serial")
public class TriangleAreaPanel  extends JPanel{
 
	 private PersonInfoIFrame mScoreFrame;
	public TriangleAreaPanel(PersonInfoIFrame f) {
		mScoreFrame = f;
		setToolTipText("心形的面积计算");
		this.setBounds(100, 100, 368, 223);
		setLayout(null);
		
		JLabel label = new JLabel("三角形面积");
		label.setBounds(101, 107, 127, 18);
		add(label);
	}
	
	
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					TriangleAreaPanel p = new TriangleAreaPanel(null);
					JFrame window = new JFrame();
					 window.setContentPane(p);					 
					 window.setSize( p.getWidth(), p.getHeight());
					 window.setLocationRelativeTo(null);
					window.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	} 
}
